package com.user.controller;

import com.user.model.vo.ServerChuZuVo;
import com.user.param.Result;
import com.user.service.ServerInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(value = "服务器接口")
@RestController
@RequestMapping(value = "/server")
public class ServerInfoController {

    @Resource
    ServerInfoService serverInfoService;

    @ApiOperation(value = "服务器列表接口")
    @RequestMapping(value = "/serverList",method = RequestMethod.POST)
    public Result serverList(){
        return serverInfoService.serverList();
    }


}
